package org.yunshang.color.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.yunshang.color.domain.TColor;
import org.yunshang.common.excel.annotation.ExcelDictFormat;
import org.yunshang.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 颜色管理视图对象 t_color
 *
 * @author Lion Li
 * @date 2024-03-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TColor.class)
public class TColorVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelIgnore
    private Long id;

    /**
     * 颜色
     */
    @ExcelProperty(value = "颜色")
    private String name;

    /**
     * 状态（0=启用，1=禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=启用, 1=禁用")
    private String status;


}
